From: Florian Müllner Date: Tue, 15 Jan 2019 19:12:04 +0000 (+0100) Subject: audioDeviceSelection: Only include settings button when allowed X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~897^2^2~160 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=62abf3edc72e4ac9d5381dc838b219ba6f0426e5;p=gnome-shell.git audioDeviceSelection: Only include settings button when allowed https://gitlab.gnome.org/GNOME/gnome-shell/issues/909 --- diff --git a/js/ui/audioDeviceSelection.js b/js/ui/audioDeviceSelection.js index 3f4b9bcc7..b44a3e7ac 100644 --- a/js/ui/audioDeviceSelection.js +++ b/js/ui/audioDeviceSelection.js @@ -56,8 +56,9 @@ var AudioDeviceSelectionDialog = new Lang.Class({ this._selectionBox = new St.BoxLayout({ style_class: 'audio-selection-box' }); this.contentLayout.add(this._selectionBox, { expand: true }); - this.addButton({ action: this._openSettings.bind(this), - label: _("Sound Settings") }); + if (Main.sessionMode.allowSettings) + this.addButton({ action: this._openSettings.bind(this), + label: _("Sound Settings") }); this.addButton({ action: this.close.bind(this), label: _("Cancel"), key: Clutter.Escape });